<template>
<div class="hot">
    <div class="hot-left">
        <div class="left-counter">
            <div class="limiit">
                限时抢购
            </div>
            <div class="count">
                距结束<span>08</span>:<span>15</span>:<span>30</span>
            </div>
        </div>
        <div class="left-content" v-for="item of leftContentlits" :key="item.id">
            <div class="content-img"><img :src="item.imgUrl" /></div>
            <div class="content-desc">{{item.desc}}</div>
        </div>
        <div class="left-prise" v-for="item of leftPriselits" :key="item.id">
            <div class="prise-sale">
                限量<span>{{item.desc}}</span>
            </div>
            <div class="prise-num">
                <span>￥</span>{{item.desc1}}<span>起</span>
            </div>

        </div>

    </div>

    <div class="hot-right">
        <div class="right-item" v-for="item of hotRightlits" :key="item.id">
            <div class="item-desc">
                {{item.desc}}fds
                <p>{{item.desca}}</p>
            </div>
            <div class="item-img">
                <img :src="item.imgUrl" />
            </div>

        </div>

    </div>

</div>
</template>

<script>
//	定义输出组件name
export default {
    name: 'homeHot',
    props: {
        hotRightlits: Array,
        leftContentlits: Array,
        leftPriselits: Array
    },
    data() {
        return {

        }
    }
}
</script>

  <!--给css样式设置语言工具stylus-->

<style scoped>
.hot {
    width: 100%;
    height: 100px;

    margin-bottom: 13px;
    margin-top: 4px;
    /* background-color:dimgrey;     */
}

.hot-left {
    width: 47%;
    height: 98px;
    float: left;
    background-color: #fff;
    padding: 5px 5px;
}

.left-counter {
    height: 15%;
}

.limiit {
    float: left;
}

.count {
    float: right;
}

.left-content {
    width: 100%;
    clear: both;
    padding-top: 5px;
}

.content-img {
    float: left;
    width: 40%;
}

.content-img img {
    width: 100%;

}

.content-desc {
    float: right;
    width: 50%;
    height: 57px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;

}

.left-prise {
    clear: both;
    padding-top: 5px;
}

.prise-sale {
    float: left;
}

.prise-num {
    float: right;
}

.hot-right {
    width: 49.7%;
    float: right;
    background-color: rgb(221, 221, 221);
    height: 108px;
}

.right-item {
    width: 100%;
    height: 49%;
    margin-bottom: 2px;
    background-color: #fff;
}

.item-desc {
    float: left;
    padding-left: 10px;
    padding-top: 7px;
    margin-top: 10px;
}

.item-img {
    width: 29%;
    height: 100%;
    float: right;
    margin-right: 8px;

}

.item-img img {
    width: 100%;
    margin-top: 7%;
}

.b {
    width: 100%;
    height: 2px;
    background-color: rgb(231, 225, 225);
    clear: both;
    position: relative;
    top: -50px;
    left: 0px;
}
</style>
